package io.renren.modules.psbranchcompany.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.psbranchcompany.dao.PsBranchCompanyDao;
import io.renren.modules.psbranchcompany.entity.PsBranchCompanyEntity;
import io.renren.modules.psbranchcompany.service.PsBranchCompanyService;



@Service("psBranchCompanyService")
public class PsBranchCompanyServiceImpl implements PsBranchCompanyService {
	@Autowired
	private PsBranchCompanyDao psBranchCompanyDao;
	
	@Override
	public PsBranchCompanyEntity queryObject(Long id){
		return psBranchCompanyDao.queryObject(id);
	}
	
	@Override
	public List<PsBranchCompanyEntity> queryList(Map<String, Object> map){
		return psBranchCompanyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return psBranchCompanyDao.queryTotal(map);
	}
	
	@Override
	public void save(PsBranchCompanyEntity psBranchCompany){
		psBranchCompanyDao.save(psBranchCompany);
	}
	
	@Override
	public void update(PsBranchCompanyEntity psBranchCompany){
		psBranchCompanyDao.update(psBranchCompany);
	}
	
	@Override
	public void delete(Long id){
		psBranchCompanyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		psBranchCompanyDao.deleteBatch(ids);
	}
	
}
